package com.ice.netty.protobuf.config;

import com.ice.remoting.NettyServerConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "proto.server")
public class ProtoNettyTestConfig extends NettyServerConfig {

    private int port = 4001;

    @Override
    public Integer getListenPort() {
        return port;
    }
}
